package com.dy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dy.common.R;
import com.dy.entity.Category;

/**
 * ClassName:CategoryService
 * Package:com.dy.service
 * Description:
 *
 * @Date:2022/8/4 8:57
 * @Author:dy
 */
public interface CategoryService extends IService<Category> {
    /**
     * @Author dy
     * @Description: 根据分类名查询
     */
    Category getCategoryByName(String name);

    /**
     * @Author dy
     *  删除分类
     */
    R<String> delete(Long ids);
}
